﻿using System;
using System.IO;
using System.Collections;
using System.Collections.Generic;
using Sqo;

namespace EDMD
{
    /// [Generated Jan 30 2011]
    public partial class i_Entry_Field : Utils, ISqoDataObject
    {

        #region "private fields"

        private int _Entry_Field_ID;
        private int _Entry_ID;
        private int _Field_ID;
        private int _Index;
        private string _Caption;
        private bool _Itinerary_Include;
        private string _GUID;

        #endregion

        #region "public properties"

        public int Entry_Field_ID
        {
            get { return _Entry_Field_ID; }
            set { _Entry_Field_ID = value; }
        }
        public int Entry_ID
        {
            get { return _Entry_ID; }
            set { _Entry_ID = value; }
        }
        public int Field_ID
        {
            get { return _Field_ID; }
            set { _Field_ID = value; }
        }
        public int Index
        {
            get { return _Index; }
            set { _Index = value; }
        }
        public string Caption
        {
            get { return _Caption; }
            set { _Caption = value; }
        }
        public bool Itinerary_Include
        {
            get { return _Itinerary_Include; }
            set { _Itinerary_Include = value; }
        }
        public string GUID
        {
            get { return _GUID; }
            set { _GUID = value; }
        }

        #endregion               

        #region "ISqoDataObject"
        object ISqoDataObject.GetValue(System.Reflection.FieldInfo field) { return field.GetValue(this); }
        void ISqoDataObject.SetValue(System.Reflection.FieldInfo field, object value) { field.SetValue(this, value); }
        int ISqoDataObject.OID { get { return Entry_Field_ID; } set { } }
        #endregion
    }//public partial class i_Entry_Field : ISqoDataObject

    public partial class s_Entry_Field : i_Entry_Field
    {
        #region "MAPPER"
        public static i_Entry_Field Convert(Entry_Field od_Entry_Field)
        {
            return new i_Entry_Field()
            {
                Entry_Field_ID = IsNull(od_Entry_Field.Entry_Field_ID),
                Entry_ID = IsNull(od_Entry_Field.Entry_ID),
                Field_ID = IsNull(od_Entry_Field.Field_ID),
                Index = IsNull(od_Entry_Field.Index),
                Caption = IsNull(od_Entry_Field.Caption),
                Itinerary_Include = IsNull(od_Entry_Field.Itinerary_Include),
                GUID = IsNull(od_Entry_Field.GUID),
            };
        }
        #endregion
    }//public partial class s_Entry_Field : i_Entry_Field

}//namespace EDMD

